Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632542 Views

Latest files of /cody/solygambas/html-css-javascript-projects/032-good cheap fast

style.css cody/solygambas/html-css-javascript-projects/032-good cheap fast/style.css
170 Views
0 Comments
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

* {
box-sizing: border-box;
}

body {
font-family: "Roboto", sans-serif;
index.html cody/solygambas/html-css-javascript-projects/032-good cheap fast/index.html
355 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Good, Cheap, Fast</title>
</head>
script.js cody/solygambas/html-css-javascript-projects/032-good cheap fast/script.js
227 Views
0 Comments
const toggles = document.querySelectorAll(".toggle");
const good = document.getElementById("good");
const cheap = document.getElementById("cheap");
const fast = document.getElementById("fast");

const doTheTrick = (theClickedOne) => {
if (good.checked && cheap.checked && fast.checked) {
if (good === theClickedOne) fast.checked = false;